package com.ls.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author pengyu
 * @since 2019-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SmsChannelIn extends Model<SmsChannelIn> {

    private static final long serialVersionUID = 1L;

    /**
     * 渠道短信入库表自增主键
     */
    @TableId(value = "chan_in_id", type = IdType.AUTO)
    private Long chanInId;

    /**
     * 上游通道主键ID
     */
    private Long chanId;

    /**
     * 入库数量
     */
    private Integer inNo;

    /**
     * 入库后的短信数量
     */
    private Integer afterStock;

    /**
     * 充值金额
     */
    private BigDecimal inAmount;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人ID
     */
    private Long createUserId;

    /**
     * 更新时间，自动
     */
    private LocalDateTime updateTime;

    /**
     * 更新人ID
     */
    private Long updateUserId;


    @Override
    protected Serializable pkVal() {
        return this.chanInId;
    }

}
